function main(defaultParams) {
    const self = this; // 重置作用域
    const tableComp = self.findElement("tree_panel_7ds0oe"); // 获取表格元素
    api.EXEC_FORMULA("TREE_QUERY_CHILDRENS('2529f6f4-a5e3-4eec-8b8c-df565be68ea8','" + defaultParams.id + "',['id'])").then((res) => {
        console.log(res);
        let deleteList = res.result;
        self.$$confirm({
            content: "确定删除该节点及其子节点？",
            type: "danger",  // danger info warning
            headerTitle: "告警", //确认框头部标题 提示、警告、告警
            showOkBtn: true, // 是否展示确认按钮
            showCancelBtn: true, // 是否展示取消按钮
            cancelText: "取消", //取消按钮 展示文字
            okText: "确定",  //确认按钮 展示文字
            onOk: () => {
                tableComp.loading = true; // 使表格置于loading状态
                tableComp.isCacheReq = false; // 使表格请求不缓存
                const famu = "UPDATE('t_603eba6a15c94346954b1d1bf627ed38',QUERY_IN('id',[" + deleteList + "]),'',['delete_flag',1])";
                api.EXEC_FORMULA(famu).then((res) => {
                    console.log(res);
                    tableComp.$$refreshData().then(() => {
                        tableComp.loading = false; // 将表格置为非loading状态
                        tableComp.isCacheReq = true;
                        self.$message.success("删除成功！");
                    });
                }).catch(err => {
                    self.$message.error(err.message); // 显示错误提示信息
                    tableComp.loading = false; // 将表格置为非loading状态
                    tableComp.isCacheReq = true; // 使表格请求缓存
                });
            },
            onCancel: () => {
                return null
            }
        });
    });
}

